package jdbc_test.dao_.test;

import jdbc_test.dao_.dao.StudentDao;
import jdbc_test.dao_.domain.Student;

import java.util.List;

public class TestDAO {
    public static void main(String[] args) {
        StudentDao studentDao = new StudentDao();

        List<Student> students = studentDao.queryMulti("select * from student where sno>=?", Student.class,1);
        System.out.println("===查询结果===");
        for(Student student:students){
            System.out.println(student);
        }
    }
}
